package com.leyou.user.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author 林琼杨
 * @version 1.0
 * @date 2020/5/27 15:44
 */
@Data
@Table(name = "tb_user_address")
public class UserAddress {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;
    private Long userId;
    private String addressee;// 收件人姓名
    private String phone;// 电话
    private String province;// 省份
    private String city;// 城市
    private String district;// 区
    private String street;// 街道地址
    private String postcode;// 邮编
    private String alias; //地址别名
    private Boolean isDefault; //是否默认地址
}
